import request from '@/utils/request1'

// 查询costume列表
export function listCostume(query) {
  return request({
    url: '/system/pos/costume/list',
    method: 'get',
    params: query
  })
}

export function searchCostume(data) {
  return request({
    url: '/system/pos/costume/search',
    method: 'post',
    data:data
  })
}

// 查询costume详细
export function getCostume(costumeId) {
  return request({
    url: '/system/pos/costume/' + costumeId,
    method: 'get'
  })
}

// 新增costume
export function addCostume(data) {
  return request({
    url: '/system/pos/costume',
    method: 'post',
    data: data
  })
}

// 修改costume
export function updateCostume(data) {
  return request({
    url: '/system/pos/costume',
    method: 'put',
    data: data
  })
}

// 删除costume
export function delCostume(costumeId) {
  return request({
    url: '/system/pos/costume/' + costumeId,
    method: 'delete'
  })
}

// 导出costume
export function exportCostume(query) {
  return request({
    url: '/system/pos/costume/export',
    method: 'get',
    params: query
  })
}